using System;
using System.Collections;
using System.Collections.Generic;

using Atom.Data.Base;

namespace Atom.Data.BusinessObjects
{
    public partial class DSummaryInfo : BusinessBase<string>
    {
        #region Declarations

		private string _codeno = null;
		private string _spellno = null;
		private string _customno = null;
		private string _strokeno = null;
		private string _chargeitem = String.Empty;
		private string _subjectid = String.Empty;
		private string _summary = String.Empty;
		private string _unit = String.Empty;
		private decimal _unitprice = default(Decimal);
		private decimal _fixedprice = default(Decimal);
		private int _type = default(Int32);
		private string _reportitem = String.Empty;
		private string _checkitem = null;
		private string _explain1 = null;
		private string _explain2 = null;
		private string _explain3 = null;
		private string _especialcheck = String.Empty;
		private int _rolltype = default(Int32);
		private string _clinicinvoiceid = null;
		private string _inhosinvoiceid = null;
		private int _stopflag = default(Int32);
		private decimal _medicarepricefixing = default(Decimal);
		private string _attitemid = null;
		private decimal? _percent = null;
		private string _lisitem = null;
		private string _createoperator = null;
		private System.DateTime? _createdate = null;
		private string _editoperator = null;
		private System.DateTime? _editdate = null;
		private string _accessionmodality = null;
		
		
		
		#endregion

        #region Constructors

        public DSummaryInfo() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_codeno);
			sb.Append(_spellno);
			sb.Append(_customno);
			sb.Append(_strokeno);
			sb.Append(_chargeitem);
			sb.Append(_subjectid);
			sb.Append(_summary);
			sb.Append(_unit);
			sb.Append(_unitprice);
			sb.Append(_fixedprice);
			sb.Append(_type);
			sb.Append(_reportitem);
			sb.Append(_checkitem);
			sb.Append(_explain1);
			sb.Append(_explain2);
			sb.Append(_explain3);
			sb.Append(_especialcheck);
			sb.Append(_rolltype);
			sb.Append(_clinicinvoiceid);
			sb.Append(_inhosinvoiceid);
			sb.Append(_stopflag);
			sb.Append(_medicarepricefixing);
			sb.Append(_attitemid);
			sb.Append(_percent);
			sb.Append(_lisitem);
			sb.Append(_createoperator);
			sb.Append(_createdate);
			sb.Append(_editoperator);
			sb.Append(_editdate);
			sb.Append(_accessionmodality);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual string Codeno
        {
            get { return _codeno; }
			set
			{
				OnCodenoChanging();
				_codeno = value;
				OnCodenoChanged();
			}
        }
		partial void OnCodenoChanging();
		partial void OnCodenoChanged();
		
		public virtual string Spellno
        {
            get { return _spellno; }
			set
			{
				OnSpellnoChanging();
				_spellno = value;
				OnSpellnoChanged();
			}
        }
		partial void OnSpellnoChanging();
		partial void OnSpellnoChanged();
		
		public virtual string Customno
        {
            get { return _customno; }
			set
			{
				OnCustomnoChanging();
				_customno = value;
				OnCustomnoChanged();
			}
        }
		partial void OnCustomnoChanging();
		partial void OnCustomnoChanged();
		
		public virtual string Strokeno
        {
            get { return _strokeno; }
			set
			{
				OnStrokenoChanging();
				_strokeno = value;
				OnStrokenoChanged();
			}
        }
		partial void OnStrokenoChanging();
		partial void OnStrokenoChanged();
		
		public virtual string Chargeitem
        {
            get { return _chargeitem; }
			set
			{
				OnChargeitemChanging();
				_chargeitem = value;
				OnChargeitemChanged();
			}
        }
		partial void OnChargeitemChanging();
		partial void OnChargeitemChanged();
		
		public virtual string Subjectid
        {
            get { return _subjectid; }
			set
			{
				OnSubjectidChanging();
				_subjectid = value;
				OnSubjectidChanged();
			}
        }
		partial void OnSubjectidChanging();
		partial void OnSubjectidChanged();
		
		public virtual string Summary
        {
            get { return _summary; }
			set
			{
				OnSummaryChanging();
				_summary = value;
				OnSummaryChanged();
			}
        }
		partial void OnSummaryChanging();
		partial void OnSummaryChanged();
		
		public virtual string Unit
        {
            get { return _unit; }
			set
			{
				OnUnitChanging();
				_unit = value;
				OnUnitChanged();
			}
        }
		partial void OnUnitChanging();
		partial void OnUnitChanged();
		
		public virtual decimal Unitprice
        {
            get { return _unitprice; }
			set
			{
				OnUnitpriceChanging();
				_unitprice = value;
				OnUnitpriceChanged();
			}
        }
		partial void OnUnitpriceChanging();
		partial void OnUnitpriceChanged();
		
		public virtual decimal Fixedprice
        {
            get { return _fixedprice; }
			set
			{
				OnFixedpriceChanging();
				_fixedprice = value;
				OnFixedpriceChanged();
			}
        }
		partial void OnFixedpriceChanging();
		partial void OnFixedpriceChanged();
		
		public virtual int Type
        {
            get { return _type; }
			set
			{
				OnTypeChanging();
				_type = value;
				OnTypeChanged();
			}
        }
		partial void OnTypeChanging();
		partial void OnTypeChanged();
		
		public virtual string Reportitem
        {
            get { return _reportitem; }
			set
			{
				OnReportitemChanging();
				_reportitem = value;
				OnReportitemChanged();
			}
        }
		partial void OnReportitemChanging();
		partial void OnReportitemChanged();
		
		public virtual string Checkitem
        {
            get { return _checkitem; }
			set
			{
				OnCheckitemChanging();
				_checkitem = value;
				OnCheckitemChanged();
			}
        }
		partial void OnCheckitemChanging();
		partial void OnCheckitemChanged();
		
		public virtual string Explain1
        {
            get { return _explain1; }
			set
			{
				OnExplain1Changing();
				_explain1 = value;
				OnExplain1Changed();
			}
        }
		partial void OnExplain1Changing();
		partial void OnExplain1Changed();
		
		public virtual string Explain2
        {
            get { return _explain2; }
			set
			{
				OnExplain2Changing();
				_explain2 = value;
				OnExplain2Changed();
			}
        }
		partial void OnExplain2Changing();
		partial void OnExplain2Changed();
		
		public virtual string Explain3
        {
            get { return _explain3; }
			set
			{
				OnExplain3Changing();
				_explain3 = value;
				OnExplain3Changed();
			}
        }
		partial void OnExplain3Changing();
		partial void OnExplain3Changed();
		
		public virtual string Especialcheck
        {
            get { return _especialcheck; }
			set
			{
				OnEspecialcheckChanging();
				_especialcheck = value;
				OnEspecialcheckChanged();
			}
        }
		partial void OnEspecialcheckChanging();
		partial void OnEspecialcheckChanged();
		
		public virtual int Rolltype
        {
            get { return _rolltype; }
			set
			{
				OnRolltypeChanging();
				_rolltype = value;
				OnRolltypeChanged();
			}
        }
		partial void OnRolltypeChanging();
		partial void OnRolltypeChanged();
		
		public virtual string Clinicinvoiceid
        {
            get { return _clinicinvoiceid; }
			set
			{
				OnClinicinvoiceidChanging();
				_clinicinvoiceid = value;
				OnClinicinvoiceidChanged();
			}
        }
		partial void OnClinicinvoiceidChanging();
		partial void OnClinicinvoiceidChanged();
		
		public virtual string Inhosinvoiceid
        {
            get { return _inhosinvoiceid; }
			set
			{
				OnInhosinvoiceidChanging();
				_inhosinvoiceid = value;
				OnInhosinvoiceidChanged();
			}
        }
		partial void OnInhosinvoiceidChanging();
		partial void OnInhosinvoiceidChanged();
		
		public virtual int Stopflag
        {
            get { return _stopflag; }
			set
			{
				OnStopflagChanging();
				_stopflag = value;
				OnStopflagChanged();
			}
        }
		partial void OnStopflagChanging();
		partial void OnStopflagChanged();
		
		public virtual decimal Medicarepricefixing
        {
            get { return _medicarepricefixing; }
			set
			{
				OnMedicarepricefixingChanging();
				_medicarepricefixing = value;
				OnMedicarepricefixingChanged();
			}
        }
		partial void OnMedicarepricefixingChanging();
		partial void OnMedicarepricefixingChanged();
		
		public virtual string Attitemid
        {
            get { return _attitemid; }
			set
			{
				OnAttitemidChanging();
				_attitemid = value;
				OnAttitemidChanged();
			}
        }
		partial void OnAttitemidChanging();
		partial void OnAttitemidChanged();
		
		public virtual decimal? Percent
        {
            get { return _percent; }
			set
			{
				OnPercentChanging();
				_percent = value;
				OnPercentChanged();
			}
        }
		partial void OnPercentChanging();
		partial void OnPercentChanged();
		
		public virtual string Lisitem
        {
            get { return _lisitem; }
			set
			{
				OnLisitemChanging();
				_lisitem = value;
				OnLisitemChanged();
			}
        }
		partial void OnLisitemChanging();
		partial void OnLisitemChanged();
		
		public virtual string Createoperator
        {
            get { return _createoperator; }
			set
			{
				OnCreateoperatorChanging();
				_createoperator = value;
				OnCreateoperatorChanged();
			}
        }
		partial void OnCreateoperatorChanging();
		partial void OnCreateoperatorChanged();
		
		public virtual System.DateTime? Createdate
        {
            get { return _createdate; }
			set
			{
				OnCreatedateChanging();
				_createdate = value;
				OnCreatedateChanged();
			}
        }
		partial void OnCreatedateChanging();
		partial void OnCreatedateChanged();
		
		public virtual string Editoperator
        {
            get { return _editoperator; }
			set
			{
				OnEditoperatorChanging();
				_editoperator = value;
				OnEditoperatorChanged();
			}
        }
		partial void OnEditoperatorChanging();
		partial void OnEditoperatorChanged();
		
		public virtual System.DateTime? Editdate
        {
            get { return _editdate; }
			set
			{
				OnEditdateChanging();
				_editdate = value;
				OnEditdateChanged();
			}
        }
		partial void OnEditdateChanging();
		partial void OnEditdateChanged();
		
		public virtual string Accessionmodality
        {
            get { return _accessionmodality; }
			set
			{
				OnAccessionmodalityChanging();
				_accessionmodality = value;
				OnAccessionmodalityChanged();
			}
        }
		partial void OnAccessionmodalityChanging();
		partial void OnAccessionmodalityChanged();
		
        #endregion
    }
}
